import request from '@/utils/request'

/**
 *
 * @param {int} id 商品id
 * @returns Promise
 */
export const findGoodsById = id => {
    return request('/goods', 'get', { id })
}
// 随机获取商品
export const findGoodsByLimit = limit => {
    return request('/goods/commend', 'get', { limit })
}
